package com.jmp.base.dto;

import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author cjr
 */
@Data
@Builder
public class GoodsSaveRequest {
    private Integer goodsId;
    private String goodsName;
    private Integer goodstypeId;
    private String goodsDetails;
    private Integer isPayment;
    /**
     * 是否显示价格
     */
    private Integer showPrice;
    private String coverImg;
    /**
     * 视频地址
     */
    private String videoUrl;
    private String wholesaleInfo;
    private BigDecimal wholesalePrice;
    private BigDecimal retailPrice;

    private String goodPhoto;
    private String specIds;

    private Integer companyId;
    /**
     * 联系方式
     */
    private String contactInfo;
    private Integer fromApp;

    private List<Spec> specList;

    private Integer type;

    @Data
    @Builder
    public static class Spec {
        private String specName;
        private Integer specId;
        private List<Spec> goodSpecModelList;
        private String specAttribute;
        private Integer specNum;
        private BigDecimal price;
    }
}
